package cn.tradewin.advisor.mixins;

import org.apache.tapestry5.ClientElement;
import org.apache.tapestry5.annotations.Environmental;
import org.apache.tapestry5.annotations.InjectContainer;
import org.apache.tapestry5.services.javascript.JavaScriptSupport;

public class TextboxHint {

	@Environmental
	private JavaScriptSupport javaScriptSupport;

	@InjectContainer
	private ClientElement clientElement;

	public void afterRender() {
		javaScriptSupport.require("textbox-hint").with(clientElement.getClientId());
	}
}
